package com.ani.mydragon.dto.template;

import java.util.*;

public class FormObjTemplate implements PageObjTemplate{

	public enum FormInputProperties{
		button,
		checkbox,
		color,
		email,
		file,
		hidden,
		image,
		number,
		password,
		radio,
		range,
		reset,
		search,
		submit,
		text,
		url,
		//-date pickers
		date,
		month,
		week,
		time,
		datetime
	}
	public enum FormFieldMark{
		form,
        input,
		select,
		textarea,
        span
	}
	
	public String title;
	
	public String fieldName;
	
	public String fieldMark;
	
	public String fieldType;
	
	public String value;
	
	public String placeHolder;
	
	public String url;
	
	public Map<Integer, String> options;

    public List<FormObjTemplate> subObjects;

	public FormObjTemplate(
			String title,
			String fieldName,
			String fieldMark,
			String fieldType,
			String value,
			String placeHolder,
			String url,
			Map<Integer, String> options,
            List<FormObjTemplate> subObjects) {
		super();
		this.title = title;
		this.fieldName = fieldName;
		this.fieldMark = fieldMark;
		this.fieldType = fieldType;
        this.placeHolder = placeHolder;
		this.value = value;
		this.url = url;
        if(options != null){
		    this.options = options;
        }else{
            this.options = new HashMap<Integer, String>();
        }
        //this.options.put(0, "");
        this.subObjects = subObjects;
    }

}
